<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <p>raw html: {{rawHtml}}</p>
        <p v-html='rawHtml'></p>
        <p>Using v-html directive: <span v-html="rawHtml"></span></p>
    </div>

    <script>
        const RawHtml={
            data() {
                return {
                    rawHtml:'<span style="color:red">This should be red</span>'
                }
            },
        }

        const app = Vue.createApp(RawHtml).mount('#app')
    </script>
</body>
</html>